//
//  ShipInfo.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-5-26.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "TBXML.h"
#import "cocos2d.h"


@interface ShipInfo : NSObject
{
    int _shipId;
    int _shipBig;
    int _shipMid;
    int _shipSmall;
    
    int _level;
    int _groupId;
    NSString* _name;
    int _flag;
    int _gold;
    int _buyGold;
    int _sellGold;
    
    int _needMilitary;
    int _needtechnology;
    int _needCommander;
    int _needJudge;
    int _needAttack;
    int _needDefense;
    int _needEngineDriven;
    int _needStrategy;
    int _needSkill;
    int _needSkillLevel;
    int _fleetCost;
    
    int _equipValue;
    int _shield;
    int _shieldElectricityResistance;
    int _shieldBombResistance;
    int _shieldKineticResistance;
    int _armoured;
    int _armouredElectricityResistance;
    int _armouredBombResistance;
    int _armouredKineticResistance;
    
    int _hp;
    int _field;
    int _speed;
    int _accelerated;
    int _steeringForce;
    int _attackSystem;
    int _defenseSystem;
    int _servoSystem;
    int _engineRoom;
    NSString* _icon;
    int _modelId;
    int _addition;
    NSString* _description;
    NSString* _BGDescription;
}

@property (readwrite) int shipId;                           //舰船id
@property (readwrite) int shipBig;                          //舰船大类
@property (readwrite) int shipMid;                          //舰船中类
@property (readwrite) int shipSmall;                        //舰船细类

@property (readwrite) int level;            //科技等级
@property (readwrite) int groupId;            //小组编号
@property (readwrite, retain) NSString* name;            //舰船名
@property (readwrite) int flag;            //舰船标志
@property (readwrite) int gold;            //金币价
@property (readwrite) int buyGold;            //买入军费
@property (readwrite) int sellGold;            //卖出军费

@property (readwrite) int needMilitary;            //舰船需求军衔
@property (readwrite) int needtechnology;            //舰船需求科技
@property (readwrite) int needCommander;            //舰船需求统帅
@property (readwrite) int needJudge;            //舰船需求判断
@property (readwrite) int needAttack;            //舰船需求攻击
@property (readwrite) int needDefense;            //舰船需求防御
@property (readwrite) int needEngineDriven;            //舰船需求机动
@property (readwrite) int needStrategy;            //舰船需求谋略
@property (readwrite) int needSkill;            //舰船需求技能
@property (readwrite) int needSkillLevel;            //舰船需求技能等级
@property (readwrite) int fleetCost;            //舰队点数消耗值


@property (readwrite) int equipValue;            //舰船装配值	
@property (readwrite) int shield;            //舰船护盾
@property (readwrite) int shieldElectricityResistance;            //护盾电抗
@property (readwrite) int shieldBombResistance;            //护盾爆抗
@property (readwrite) int shieldKineticResistance;            //护盾动抗
@property (readwrite) int armoured;            //舰船装甲
@property (readwrite) int armouredElectricityResistance;            //装甲电抗
@property (readwrite) int armouredBombResistance;            //装甲爆抗
@property (readwrite) int armouredKineticResistance;            //装甲动抗

@property (readwrite) int hp;            //舰船结构
@property (readwrite) int field;            //舰船视野
@property (readwrite) int speed;            //舰船速度
@property (readwrite) int accelerated;            //加速力
@property (readwrite) int steeringForce;            //转向力
@property (readwrite) int attackSystem;            //攻击系统
@property (readwrite) int defenseSystem;            //防御系统
@property (readwrite) int servoSystem;            //辅助系统
@property (readwrite) int engineRoom;            //舰载机仓
@property (readwrite, retain) NSString* icon;            //图标
@property (readwrite) int modelId;            //模型
@property (readwrite) int addition;            //舰船加成
@property (readwrite, retain) NSString* description;            //说明
@property (readwrite, retain) NSString* BGDescription;            //舰船背景

+(id) infoWithTbxml:(TBXMLElement *)tbxml;
-(id) initWithTbxml:(TBXMLElement *)tbxml;

@end
